<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue"></script>
    <script src="${contextPath}/js/util.js"></script>
</head>
<body>
<div id="app">
欢迎您，${name}-${job}！
{{ message }} {{ age }}
</div>
<script>
// error: "import * from './js/util';"

var app = new Vue({
  el: '#app',
  data: {
    message: 'Hello Vue!',
    age: undefined
  },
  created () {
    this.max([1,2,3])
  },
  methods: {
    max (arr) {
        this.age = arr.max()
    }
  },
})
</script>
</body>
</html>